#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   tipDialog.py
@Time    :   2020/04/02 10:20:15
@Author  :   Xiong qiufeng
@Version :   1.0
@Contact :   1528399071@qq.com
@License :   (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
@Desc    :   None
'''


from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *


from ui.tipDialog import Ui_Dialog
class tipDialog(QDialog, Ui_Dialog):

    def __init__(self, parent=None):
        super(tipDialog, self).__init__(parent)
        self.setupUi(self)
        self.setWindowTitle('提示信息')
        # 去掉标题栏
        self.setWindowFlags(Qt.FramelessWindowHint)

        self.font = QFont()
        self.font.setFamily("Agency FB")
        self.font.setPointSize(28)
        # self.label_tip.setStyleSheet('background: :icons/img/app.ico')


    def setText(self, text):
        self.label_tip.setText(text)
        self.label_tip.setFont(self.font)